package xyz.weblade.lynchmybatis.parsing包解读;

import org.apache.ibatis.parsing.PropertyParser;

import java.util.Properties;

/**
 * @author lynch
 * @since 2025/2/14 v1.0
 */
public class Main01 {
    public static void main(String[] args) {
        Properties property = new Properties();
        property.setProperty("org.apache.ibatis.parsing.PropertyParser.enable-default-value", "false");
        property.setProperty("org.apache.ibatis.parsing.PropertyParser.default-value-separator", "@");
        property.setProperty("dbname", "digital_signing");
        String parse = PropertyParser.parse("jdbc：mysql：//127.0.0.1：3306/${dbname:4451}？\n" +
                "serverTimezone=UTC", property);
        System.out.println(parse);
    }
}
